﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Csla;
using Csla.Security;
using System.Security.Principal;

namespace Sys.Security
{
    public class AuthorizationRulesManager
    {
        /// <summary>
        /// 检测拒绝处理的业务类
        /// </summary>
        /// <param name="principal"></param>
        /// <param name="role"></param>
        /// <returns></returns>
        private static bool IsInRole(IPrincipal principal, string role)
        {
           
            if (principal.Identity.GetType().FullName == "Sys.Core.Security.TKIdentity")
            {
                return false;
            }
            else
            {
                return true;
            }
            string x = "adf";
          
        }
    }
}
